<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    let m=prompt("输入您的出生月份");
    let n=prompt("输入您的出生日期");
    function f(m,n) {
        if(m==3&&n>=21&&n<32||m==4&&n<=19){
            return "白羊座";
        }else if(m==4&&n>=20&&n<31||m==5&&n<=20){
            return "金牛座";
        }else if(m==5&&n>=20&&n<32||m==6&&n<=21){
            return "双子座";
        }else if(m==6&&n>=22&&n<31||m==7&&n<=22){
            return "巨蟹座";
        }else if(m==7&&n>=23&&n<32||m==8&&n<=22){
            return "狮子座";
        }else if(m==8&&n>=23&&n<32||m==9&&n<=22){
            return "处女座";
        }else if(m==9&&n>=23&&n<31||m==10&&n<=22){
            return "天秤座";
        }else if(m==10&&n>=23&&n<32||m==11&&n<=21){
            return "天蝎座";
        }else if(m==11&&n>=22&&n<31||m==12&&n<=21){
            return "射手座" ;
        }else if(m==12&&n>=22&&n<32||m==1&&n<=19){
            return "摩羯座";
        }else if(m==1&&n>=20&&n<32||m==2&&n<=18){
            return "水瓶座";
        }else if(m==2&&n>=19&&n<30||m==3&&n<=20){
            return "双鱼座";
        }else {
            return "您的输入不正确！"
        }
    }
    document.write(f(m,n))
</script>
</body>
</html>